<local:DocumentBase x:Class="WPFExcelReport.ITXSETUP"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:INTEX.DataBase"
                    xmlns:my="clr-namespace:WPFExcelReport" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                   xmlns:HR="clr-namespace:WPFExcelReport;assembly=TICC_HRSTAMM" 
                    xmlns:PLC="clr-namespace:WPFExcelReport;assembly=TKSLEIST" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:PL="clr-namespace:WPFExcelReport;assembly=TICC_PRULES" 
                     xmlns:DR="clr-namespace:WPFExcelReport;assembly=TDRAUFTR" 
                    xmlns:SL="clr-namespace:WPFExcelReport;assembly=TICC_SRULES" 
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS" 
                    xmlns:WFD="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTDEF" 
                    xmlns:WFG="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTSGROUP" 
                     xmlns:WFC="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTSCLASS" 
                     xmlns:WFS="clr-namespace:WPFExcelReport;assembly=TICC_WFSUBSCRIBER" 
                    xmlns:FD="clr-namespace:WPFExcelReport;assembly=TICC_FOLDERS" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"    
                    Loaded="Window_Loaded"
                    >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <db:SETINTEXDB  x:Key="SetData" />
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition  Height="1*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="1" Grid.Column="0">
            <WrapPanel>
                <Button  Margin="10,10,0,0"  Content="{Binding Source={Localization:Translate Word=新客户}}" Click="MDCommand" />
                <TextBox Name="cMD" Text="ITX" />
                <SD:KMD/>
            </WrapPanel>
            <WF:TBTNEXE  Margin="10,10,0,0"  CMD="HR02" DLL="TICC_HRSTAMM" STWNW="MainWindow" INFO="用户定义" IsInfo="True"/>
            <WF:TBTNEXE  Margin="10,10,0,0"  CMD="MU02" DLL="TICC_MENUDEF" STWNW="MainWindow" INFO="菜单管理" IsInfo="True"/>
            <WF:TBTNEXE  Margin="10,10,0,0" CMD="FN02" DLL="TICC_FUNCTIONS" STWNW="MainWindow" INFO="功能定义" IsInfo="True"/>
            <WF:TBTNEXE  Margin="10,10,0,0" CMD="PRG02" DLL="TICC_PROGDEF" STWNW="MainWindow" INFO="程序控制项" IsInfo="True"/>
            <WF:TBTNEXE  Margin="10,10,0,0" CMD="UR02" DLL="TICC_USERRIGHT" STWNW="MainWindow" INFO="权限控制" IsInfo="True"/> 
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TICC_MULLANG" CMD="ML02" STWNW="MainWindow" INFO="界面翻译管理"/>
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TAMSTAMM" CMD="ZL02" STWNW="MainWindow" INFO="ZL管理"/>
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TICC_ZLAN" CMD="ZL03" STWNW="MainWindow" INFO="IoT"/>
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TAMSTAMM" CMD="AM02" STWNW="MainWindow" INFO="设备管理"/>
             
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TICC_JJRULES" CMD="JJ02" STWNW="MainWindow" INFO="任务-任务规则"/>
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TAPKOPF" CMD="STDAP02" STWNW="MainWindow" INFO="标准工艺条件"/>
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TAPKOPF" CMD="AP02" STWNW="MainWindow" INFO="加工流程"/>
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TKSTSTELL" CMD="KS02" STWNW="MainWindow" INFO="成本中心管理"/>
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TGSDAT" CMD="GSPR" STWNW="MainWindow" INFO="纱线价格维护"/>
            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                        DLL="TICC_PRNDEF" CMD="PCLT" STWNW="MainWindow" INFO="PCL Tools"/>
        </StackPanel>
         
        <TabControl Grid.Row="1" Grid.Column="1">
            
            <TabItem Header="{Binding Source={Localization:Translate Word=关键字管理}}" >
                <Grid>
                    <Grid.RowDefinitions >
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <SD:TSDDAT Grid.Row="1"/>
                    <WrapPanel Grid.Row="0">
                        <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TMAPSDEF" CMD="MAP" STWNW="MainWindow" INFO="MAPDEF"/>
                    </WrapPanel>
                    
                </Grid>
            </TabItem>  
            <TabItem Header="{Binding Source={Localization:Translate Word=目录管理}}">
                <Grid>
                    <Grid.RowDefinitions >
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <FD:TFOLDER VerticalAlignment="Top" />
                </Grid>
            </TabItem> 
            <TabItem Header="{Binding Source={Localization:Translate Word=移库编码}}">
                <Grid>
                    <Grid.RowDefinitions >
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <my:ITXGABBS VerticalAlignment="Top" SetMaster="{Binding Path=SetMaster}" SetDetail="{Binding Path=SetDetail}" SetEnv="{Binding Path=SetEnv}" />
                </Grid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=计划规则}}">
                <TabControl>
                    <TabItem Header="{Binding Source={Localization:Translate Word=排产规则}}">
                        <SL:TICC_SRULES/>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=计划规则}}">
                        <PL:TMPRULES/>
                    </TabItem> 
                </TabControl>
            </TabItem> 
            <TabItem Header="{Binding Source={Localization:Translate Word=工作流设定}}">
                <TabControl>
                    <TabItem Header="{Binding Source={Localization:Translate Word=工作流分组}}">
                        <Grid>
                            <Grid.RowDefinitions >
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <WFG:TWFEVENTSGROUP VerticalAlignment="Top"/>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=工作流分类}}">
                        <Grid>
                            <Grid.RowDefinitions >
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <WFC:TWFEVENTSCLASS VerticalAlignment="Top"  />
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=事件类型}}">
                        <Grid>
                            <Grid.RowDefinitions >
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <WFD:TWFEVENTDEF VerticalAlignment="Top"   />
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=事件订阅}}">
                        <Grid>
                            <Grid.RowDefinitions >
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <WFS:TWFSUBSCRIBER VerticalAlignment="Top"  />
                        </Grid>
                    </TabItem>

                </TabControl>

            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=数据导入}}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Row="0">
                        <WrapPanel>
                            <Button  Height="30"  Width="30" Margin="10,0,0,0"   Click="btnExDataLoad_Click" KeyboardNavigation.TabIndex="3" IsDefault="True" HorizontalAlignment="Left">
                                <Button.Background>
                                    <ImageBrush ImageSource="Images/Reload.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=装载}}"></TextBlock>
                            <Button  Height="30"  Width="30" Margin="10,0,0,0"   Click="btnExDataSave_Click" KeyboardNavigation.TabIndex="3" IsDefault="True" HorizontalAlignment="Left">
                                <Button.Background>
                                    <ImageBrush ImageSource="Images/Upload.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=保存}}"></TextBlock>
                            <TextBlock Name="txtInfo"></TextBlock>
                        </WrapPanel>
                    </StackPanel>
                    
                </Grid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=PLC}}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                 </Grid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=系统管理}}" >
                <Grid>
                    <Grid.RowDefinitions >
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <StackPanel>
                        <WrapPanel>
                            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TVAART" CMD="DVA02" STWNW="MainWindow" INFO="重置VA07/VA10/WS03/WS07"/>
                        </WrapPanel>
                        <WrapPanel>
                            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TVKKOPF" CMD="DVK02" STWNW="MainWindow" INFO="重置VK"/>
                            <TextBlock Text="VK04.VK05,VK06(地址),VKZUAB,VVT,VR05,VRK,AB52,WDECK,销售单相关WB14，销售点流水号为1"/>
                        </WrapPanel>
                        <WrapPanel>
                            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TKDSTAMM" CMD="DKD02" STWNW="MainWindow" INFO="重置KD"/>
                            <TextBlock Text="重置客户流水号为1，KD03,KD05,KD14"/>                            
                        </WrapPanel>
                        <WrapPanel>
                            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TEKKOPF" CMD="DEK02" STWNW="MainWindow" INFO="重置EK"/>
                            <TextBlock Text="重置供应商流水号为1，EK04,EK05,地址，附加费，VR04/VR05/AB52/WDECK,WBBST,WB14,WBDAT,重置卡号为1"/>
                        </WrapPanel>
                        <WrapPanel>
                            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TGSDAT" CMD="DGS02" STWNW="MainWindow" INFO="重置GS"/>
                            <TextBlock Text="GS03,GS07,GS08"/>
                        </WrapPanel>

                        <WrapPanel>
                            <WF:TBTNEXE  Margin="10,10,0,0"
                         IsInfo="True" 
                         DLL="TLIEFDAT" CMD="DLS02" STWNW="MainWindow" INFO="重置LS"/>
                            <TextBlock Text="LS03,LIEFDAT流水号为1"/>
                        </WrapPanel>
                        <WrapPanel>
                            <WF:TBTNEXE  Margin="10,10,0,0"
                             IsInfo="True" 
                             DLL="TTXTIND" CMD="DTX02" STWNW="MainWindow" INFO="重置TXT"/>    
                            <TextBlock Text="删除VAK类型备注"/>
                        </WrapPanel> 

                    </StackPanel>
                </Grid>
            </TabItem>
           
        </TabControl>
    </Grid>
</local:DocumentBase>
